<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var index = [1,2,3,4,5,6];
        var num = '50';
        console.log(typeof(index));//返回值为odject
        console.log(Array.isArray(index));//为数组返回true
        console.log(Array.isArray(num));//不是数组返回false
        
    </script>
</body>
</html>